<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{box-sizing: border-box;}
        div{
            width: 800px;
            height: 400px;
            background-color: pink;
            display: flex;
            flex-wrap: wrap;
            flex-direction: row;
            /* justify-content: space-around; */
        /* justify-content: space-between;
         */
         /* justify-content: space-evenly; */
         /* align-items: flex-end; */
         align-items: center;
        }
        p{
            width: 100px;
            height: 100px;
            background-color: yellow;
            border: 1px solid #000;
         
        }
        .box{
            background-color: gray;
            border: 1px solid #000;
            flex: 1;
            

        }
    </style>
</head>
<body>
    <div>
        <p>1</p>
    <p>2</p>
    <p>3</p>
    <p class="box">4</p>
    <p>5</p></div>
</body>
</html>